<?php

namespace app\api\model\wanlshop;

use think\Model;
use traits\model\SoftDelete;

class HxqUser extends Model
{



    // 表名
    protected $name = 'wanlshop_hxq_user';

    // 自动写入时间戳字段
    protected $autoWriteTimestamp = 'int';

    // 定义时间戳字段名
    protected $createTime = 'createtime';
    protected $updateTime = 'updatetime';

    public function user()
    {
        return $this->belongsTo('app\common\model\User', 'user_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
    public function hxq()
    {
        return $this->belongsTo('app\api\model\wanlshop\Hxq', 'hxq_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
    public function shop()
    {
        return $this->belongsTo('app\api\model\wanlshop\Shop', 'shop_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
    public function good()
    {
        return $this->belongsTo('app\api\model\wanlshop\Goods', 'goods_id', 'id', [], 'LEFT')->setEagerlyType(0);
    }
}